<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:composite="http://java.sun.com/jsf/composite">
<composite:interface>
	<composite:attribute name="max" type="java.lang.Integer" default="50" />
	<composite:attribute name="value" required="true" />
</composite:interface>
<composite:implementation>
		<h:outputText value="#{cc.attrs.value}" rendered="#{cc.attrs.max ge cc.attrs.value.length}" styleClass="#{cc.attrs.styleClass}"/>
		<h:outputText value="#{cc.attrs.value.substring(0, cc.attrs.max)}..." rendered="#{cc.attrs.value.length >  cc.attrs.max}" styleClass="#{cc.attrs.styleClass}"/>
</composite:implementation>
</html>